class PeaBullet extends GuaImage{
    constructor(game, name) {
        super(game, name)
        // 子弹的伤害
        this.damage = 1
        // 子弹速度
        this.speed = 3
        // 子弹在第几排
        this.row = -1
    }

    update() {
        this.x += this.speed
    }

    debug(){
        this.speed = config.bullet_speed.value
    }
    remove(){
        this.scene.removeBullet(this)
    }
}